export * from "./defaultSetting";

export function getFileNameAndSuffix(path: string) {
  const reg = /(?<name>[^\\/]+)\.(?<suffix>[^\\/]+)/i;
  const result = reg.exec(path);
  const groups = result?.groups;

  if (groups) {
    return groups;
  }

  return { name: "", suffix: "" };
}
